*,::after, ::before{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
  height: 100%;
  font-family: sans-serif; // 1
  -webkit-text-size-adjust: 100%; // 2
}


body {
    height: 100%;
    margin: 0;
    font: @font;
    overflow: hidden;
}

#root{
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
}

a{
    text-decoration: none;
    color:@base-color;

    &:hover{
        color: darken(@base-color,20%);
        text-decoration: underline;
    }
}

hr{
    border: none;
    border-top: 1px solid @border-color;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit; // 1
  font: inherit; // 2
  margin: 0; // 3
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-thumb {
    border-radius: @panel-radius;;
    background-color: rgba(195, 195, 195, 0.5);
}

//css动画
@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    50% {
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg)
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

//红点
.badge{
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: @warning-color;
    border-radius: 20px;
    font-size: 12px;
    transform: scale(.6);
    color: white;
    text-align: center;
    line-height: 20px;
}

//用户圆形的小图
.circle-photo(@size){
    width: @size;
    height: @size;
    overflow: hidden;
    border-radius: @size;

    img{
        height: @size;
        width: @size;
        display: inline-block;
    }
    background-image: url('../../images/default-photo.png');
    background-size: @size @size;
}

//小于12号的字体
.small12{
    transform-origin: left;
    transform: scale(.8);
    display: inline-block;
}

//徽章
.chapter{
    line-height: 12px;
    padding: 1px 7px;
    font-size: 12px;
    color:white;
    background-color: @base-color;
    border-radius: 7px;
    display: inline-block;
    transform: scale(0.9);
}

//禁止鼠标事件、并且改变鼠标样式
.offline{
    cursor: not-allowed !important;
    &>*{
        pointer-events: none;
    }
}

// 图片黑白处理
.offlineImg{
    filter: grayscale(100%);
}

// popover
.Popover{
    z-index: 2;
    .Popover-tip{
        display: none;
    }

    .Popover-body{
        padding: 10px;
        background-color: #fff;
        border-radius: @panel-radius;;
        border:1px solid @border-color;
    }
}

.dropdown{
    padding: 0;
    margin: 0;

    li {
        list-style: none;
        padding: 5px 10px;
        font-size: 12px;
        cursor: pointer;
        text-align: center;
    }

    .title{
        font-size: 13px;
        color: @base-color;
    }
}

//tab
.tab-list{
    display: flex;
    margin: 0;
    padding: 0;

    li{
        list-style: none;
        flex: 1;
    
        &:first-child a{
            border:1px solid @border-color;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }

        &:last-child a{
            border:1px solid @border-color;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;            
        }           
    }
    a{
        display: block;
        padding: 4px 8px;
        text-decoration: none;
        color: @gray-darker;
        background-color: white;
        border-top:1px solid @border-color;
        border-bottom:1px solid @border-color;
        text-align: center;
        min-width: 80px;

        &:hover{
            color: @base-color;
        }

        &:active{
            color: darken(@base-color,10%);
        }        

        &.active{
            color:white ;
            background-color: @base-color;
            border-color:@base-color;
        }

    }
     
}